﻿<Pages:BasePage 
    x:Class="AllenalaMente.Pages.LeaderboardPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:AllenalaMente.Menu"
  xmlns:Pages="clr-namespace:Mogade.Examples.WindowsPhone.Pages" FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False">

  <!--LayoutRoot is the root grid where all page content is placed-->
  <Grid x:Name="LayoutRoot">
    <Grid.Background>
      <ImageBrush ImageSource="/AllenalaMente;component/Assets/Images/Backgrounds/SfondoGeneric.jpg" Stretch="UniformToFill" />
    </Grid.Background>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
      <TextBlock x:Name="ApplicationTitle" Text="Leaderboard" Style="{StaticResource PhoneTextNormalStyle}" FontSize="24" FontFamily="Comic Sans MS"/>
      <!--<TextBlock x:Name="PageTitle" Text="page name" Foreground="White" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontFamily="Assets/Fonts/BAVEUSE.TTF#Baveuse" />-->
    </StackPanel>

    <!--Banner-->
    <my:CarouselBanner HorizontalAlignment="Left" Margin="320,0,0,0" x:Name="carouselBanner" VerticalAlignment="Top" />

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="Navigtion" Grid.Row="1" Margin="265,0,12,31">

      <TextBlock Height="54" TextAlignment="Center" FontSize="38" HorizontalAlignment="Left" Margin="6,6,0,0" Name="ScopeTitle" VerticalAlignment="Top" Width="444" />
      <Button BorderThickness="3" Content="«" FontFamily="Segoe WP" FontStretch="Normal" Height="60" HorizontalAlignment="Left" Name="PreviousScope" Padding="0,-5,0,0" VerticalAlignment="Top" Width="67" Click="PreviousScope_Click" />
      <Button BorderThickness="3" Content="»" FontFamily="Segoe WP" FontStretch="Normal" Height="60" HorizontalAlignment="Left" Name="NextScope" Padding="0,-5,0,0" VerticalAlignment="Top" Width="67" Margin="383,0,0,0" Click="NextScope_Click" />
    </Grid>

    <Grid x:Name="Leaderboard" Grid.Row="1" Margin="270,71,12,0">
      <TextBlock Height="54" FontSize="24" FontWeight="Bold" HorizontalAlignment="Left" Margin="6,6,0,0" Name="TitleUserName" Text="UserName" VerticalAlignment="Top" Width="130" />
      <TextBlock Height="54" FontSize="24" FontWeight="Bold" HorizontalAlignment="Left" Margin="200,6,0,0" Name="TitleScore" Text="Score" VerticalAlignment="Top" Width="130" />
      <!--<TextBlock Height="54" FontSize="24" FontWeight="Bold" HorizontalAlignment="Left" Margin="350,6,0,0" Name="TitleLevel" Text="Level" VerticalAlignment="Top" Width="130" />-->
      <ScrollViewer Width="500" Height="300" Margin="0,0,0,0">
        <StackPanel Name="Scores" Margin="6, 20, 0, 0" />
      </ScrollViewer>
    </Grid>

    <Grid x:Name="Footer" Margin="9,0,12,12" Grid.Row="1">
      <Button Template="{StaticResource RedSmallTemplate}" Content="pubblica" FontSize="20" Height="72" HorizontalAlignment="Left" Margin="36,318,0,0" Name="Submit" VerticalAlignment="Top" Width="160" Click="Submit_Click" />

      <Ellipse Height="167" HorizontalAlignment="Left" Margin="10,21,0,0" Name="ellipse1" Stroke="Black" StrokeThickness="1" VerticalAlignment="Top" Width="205" Fill="White" />
      <TextBlock Name="textboxPoints" Margin="37,48,582,222" Foreground="Black" FontSize="20" TextWrapping="Wrap" FontFamily="Comic Sans MS" Text="Pubblica online il tuo punteggio!"></TextBlock>
      
      <Rectangle Height="100" Fill="Red" RadiusX="30" RadiusY="30" Margin="7,238,517,58"></Rectangle>
      <TextBlock Name="bestScoreBox" TextAlignment="Center" FontFamily="Comic Sans MS" Margin="124,302,556,62" Foreground="Black" TextWrapping="Wrap" Text="0"></TextBlock>
      <TextBlock Name="bestScoreText" TextAlignment="Left" FontFamily="Comic Sans MS" Margin="92,266,513,88" Foreground="Black" TextWrapping="Wrap" Text="Miglior punteggio"></TextBlock>

      <Image Name="imgLittleNut" Source="/AllenalaMente;component/Assets/Images/UI/LittleNut.png" Stretch="UniformToFill" Margin="1,180,662,96" />
      <Image Name="imgBalloon" Source="/AllenalaMente;component/Assets/Images/UI/Balloon.png" Stretch="Uniform" Margin="76,172,640,187" />

    </Grid>
  </Grid>

</Pages:BasePage>
